<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
		<link rel="stylesheet" href="style.css">
	</head>
<title>Search links</title>
</head>

<body>

<p><b>Feature Name:</b> Search links<br><b>Feature URL:</b>&nbsp; /api/links/search_link.php<br>
<b>Parameters: </b><br>&nbsp;&nbsp;&nbsp;
verbose<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
- Activates verbose mode, Integer(0-disabled, 1-enabled), Optional (0 by 
default)<br>&nbsp;&nbsp;&nbsp;
link<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
- Searches in the urls of the links, titles and descriptions; String, Not Optional<br>&nbsp;&nbsp;&nbsp; xml<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
- Defines if returns xml, Integer(0-disabled, 1-enabled), Optional (0 by 
default)
<br><br><b>Examples:</b><br>/api/links/search_link.php?link=google<br>/api/links/search_link.php?link=google&xml=1<br><br><b>Output :</b><br>

{"Result":{"SearchLink":[{"title":"Gmail","linkURL":"www.gmail.com","description":"Servidor de email do google","hits":"100"},{"title":"Google","linkURL":"http:\/\/www.google.com","description":"Motor de pesquisa da google","hits":"12"}]}}<br>
{"Result":{"SearchLink":"parameterError"}}<br>
{"Result":{"SearchLink":"noResultsError"}}<br>

</body>
<xmp>
<?xml version="1.0"?>
<Result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://gnomo.fe.up.pt/~ei10048/trabalho2/xsd.xsd">
  <SearchLink>
     <Link>
      <Title>Gmail</Title>
      <LinkURL>www.gmail.com</LinkURL>
      <Description>Servidor de email do google</Description>
      <Hits>95</Hits>
      <Tags>
        <Tag>servidor</Tag>
        <Tag>email</Tag>
        <Tag>google</Tag>
        <Tag>gmail</Tag>
      </Tags>
    </Link>
    <Link>
      <Title>Google</Title>
      <LinkURL>http://www.google.com</LinkURL>
      <Description>Motor de pesquisa da google</Description>
      <Hits>12</Hits>
      <Tags>
        <Tag>motor</Tag>
        <Tag>pesquisa</Tag>
        <Tag>google</Tag>
      </Tags>
    </Link>
  </SearchLink>
</Result>

<?xml version="1.0"?>
<Result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://gnomo.fe.up.pt/~ei10048/trabalho2/xsd.xsd">
  <SearchLink>
  <Error>
  parameterError
  </Error>
  </SearchLink>
</Result>

<?xml version="1.0"?>
<Result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://gnomo.fe.up.pt/~ei10048/trabalho2/xsd.xsd">
  <SearchLink>
  <Error>
  noResultsError
  </Error>
  </SearchLink>
</Result>